package cn.cool.types.design.framework.tree;

/**
 * 策略处理器: 当前节点处理逻辑
 * @param <T> 入参类型
 * @param <D> 动态上下文
 * @param <R> 返回值类型
 */
public interface StrategyHandler<T, D, R> {
    StrategyHandler DEFAULT = (T, D) -> null;

    R apply(T requestParameter, D dynamicContext) throws Exception;
}
